#include <iostream>
#include<string>
using namespace std;
const int N = 1e4 + 10;
string A, B;
int main() {
    while (cin >> A >> B) {
        int cnt[26] = { 0 };
        bool flag = 1;
        for (char x : A) {
            cnt[x - 'A']++;
        }
        for (char x : B) {
            cnt[x - 'A']--;
            if (cnt[x - 'A'] < 0) {

                flag = 0;
                break;
            }
        }
        cout << (flag ? "Yes" : "No") << endl;
    }
    return 0;
}